package com.jyuxuan.recruitment.constant;


/**
 * 状态返回码
 */
public enum CodeType {

    /**
     * 状态码
     */
    SUCCESS_STATUS(200, "操作成功"),
    FAILED_STATUS(500, "操作失败"),


    SUCCESS_LOGIN(201, "登陆成功"),


    NOT_FOUND_NUMBER(401, "用户名不存在"),

    WRONG_PASSWORD(402, "密码错误"),

    ;

    private int code;

    private String message;

    CodeType(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
